Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

Extends the GitHub Actions deployment workflow to verify that OpenTofu can access the existing Kubernetes remote state for both TEST infrastructure stacks.

This ensures remote-state access is working before implementing automated infrastructure deployment.

Changes

  • Add a read-only remote-state verification step to deploy.yml.
  • Initialize the Kubernetes backend for both TEST stacks:
    • environments/test/network
    • environments/test/frontend
  • Use the existing temporary Kubernetes kubeconfig for backend authentication.
  • Verify that both state files contain managed resources.
  • Report the number of resources found in each stack.
  • Fail the workflow if either state is empty or inaccessible.

Verification

  • Existing Kubernetes connectivity and authentication checks passed.
  • Verified access to the Kubernetes iac namespace.
  • Verify OpenTofu backend initialization for the TEST network stack.
  • Verify OpenTofu backend initialization for the TEST frontend stack.
  • Confirm both remote states contain existing resources.

Next Steps

  • Verify state locking during a controlled OpenTofu plan.
  • Configure deployment variables for GitHub Actions.
  • Implement automated TEST network and frontend deployments.
  • Extend deployment automation to STAGE and PROD.
  • Implement selective and full infrastructure destruction.

Notes

This PR introduces read-only remote-state verification only. No infrastructure resources are created, modified, or destroyed.

@einalien einalien added the enhancement New feature or request label Nov 1, 2026
@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien merged commit 5d9eb28 into main Nov 1, 2026
1 check passed
@einalien einalien deleted the feat/verify-remote-state branch November 1, 2026 18:38
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant